//
// rectangle.h
//

#pragma once


// class rectangle
//////////////////////////////////////////////////////////////////////////
class rectangle
{
public:
  rectangle(void);
  ~rectangle(void);

  // set coordinates of rectangle
  void setCoords (double xmn, double ymn, double xmx, double ymx, double rot = 0.0);

  // get coordinates of rectangle
  double getXmin ();
  double getYmin ();
  double getXmax ();
  double getYmax ();
  double getDepth ();


  // draw current failure
 //  void draw ( );


  // get area
  double area (void);

  // center
  double center_x (void);
  double center_y (void);

  double Ix_cg ();
  double Iy_cg ();
  double Ix (double ref_x);
  double Iy (double ref_x);

  double area_1Moment_x (double ref_x);
  double area_1Moment_y (double ref_y);
  double area_2Moment_x (double ref_x);
  double area_2Moment_y (double ref_y);

private:
  double xmin, ymin, xmax, ymax;

};

